import Config from './config'
import CheckLogin from './verification-login'
import Store from '../../store/index'
class Util {
	constructor() {

	}
	dealParams(data) {
		if (typeof data === 'object') {
			let paramsArr = Object.keys(data)
			let str = ''
			paramsArr.forEach(item => {
				if (!str) {
					str = `?${item}=${data[item]}`
				} else {
					str += `&${item}=${data[item]}`
				}
			})
			return str
		} else {
			return ''
		}
	}

}

export default new Util()
